package com.spring.server;

import java.util.HashMap;
import java.util.Map;

/**
 * 存储方法的访问路径
 **/
public class HandlerMapping {

    /**
     * @Field: requesetMap
     * 用于存储方法的访问路径
     */
    private static Map<String, String> mappingMap = new HashMap<String, String>(50);

    public static String getMethod(String path) {
        return mappingMap.get(path);
    }

    public static void putMappingMap(String path, String methodName) {
        mappingMap.put(path, methodName);
    }
    public static Map<String, String> getMappingMap() {
        return mappingMap;
    }
}